import javax.swing.*;

public class GameDialog extends JDialog {
    String pattern;
    public GameDialog(String pattern){
        this.pattern = pattern;

        if(pattern.equals("easy")) add(new EasyPanel());
        else if(pattern.equals("intermediate")) add(new MediatePanel());
        else if(pattern.equals("difficult")) add(new HardPanel());

        setVisible(true);
        pack();
    }
}
